//
//  OwlTableViewController.m
//  Owl
//
//  Created by Tianzhou on 09-2-11.
//  Copyright 2009 Tianzhou Software Inc.. All rights reserved.
//

#import "OwlTableViewController.h"
#import "OwlWindowController.h"
#import "ChildNode.h"

@implementation OwlTableViewController

@synthesize lineCountTableView = tableView_;

- (id)initWithNibName:(NSString *)name bundle:(NSBundle *)bundle windowController:(OwlWindowController *)windowController
{
	if (![super initWithNibName:name bundle:bundle windowController:windowController])
		return nil;
	[self setRepresentedObject:[windowController document]];
	return self;
}

- (void)awakeFromNib
{
	NSLog(@"table view");
}

//- (void)respondToSourceListNewSelection:(id)newSelection
//{
//	//NSArray *seleArray2 = [selectC arrangedObjects];
//	//[selectC rearrangeObjects];
////	[[self representedObject] willChangeValueForKey:@"contents"];
////	[[self representedObject] didChangeValueForKey:@"contents"];
////	[tableView_ reloadData];
//}

// Table view data source functions
//- (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView
//{
//	return [[self selectedContents] count];
//}

//- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex
//{
//	id returnValue = @"";
//	ChildNode *theNode = [ [self selectedContents] objectAtIndex:rowIndex ];
//	NSString *columnID = [ aTableColumn identifier ];
//	if ( [ columnID isEqualToString:@"fileName" ] ) {
//		returnValue = [theNode nodeTitle];
//	}
//	else if ( [ columnID isEqualToString:@"lineCount"] ) {
//		returnValue = [theNode lineCount];
//	}
//	else if ( [ columnID isEqualToString:@"directory" ] ) {
//		returnValue = [theNode urlString];
//	}
//	return returnValue;
//}

@end
